<template>
  <a-config-provider :locale="locale">
    <router-view />
  </a-config-provider>
</template>

<script>
import { ConfigProvider } from 'ant-design-vue'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import moment from 'moment'
// import 'moment/locale/zh-cn'
moment.locale('zh-cn')//日期组件选择为中文
export default {
  components: { [ConfigProvider.name]: ConfigProvider },
  data() {
    return {
      locale: zhCN
    }
  }
}
</script>
